package com.boot3.dao.impl;

import com.boot3.dao.EmpDao;
import com.boot3.entity.Emp;
import org.springframework.stereotype.Repository;

/**
 * @author wzm
 * @create 2024-02-28 9:26
 * project_name:JavaWeb2401
 * @Description
 */
//dao实现类
//@Component //交给ioc容器管理
    @Repository
public class EmpDaoImpl implements EmpDao {

    @Override
    public Emp selectEmpById(Integer id) {
        //模拟一下 正常需要通过数据库操作代码访问数据库获得相关数据

        return new Emp(1,"刘德华","*************");
    }
}
